<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
  <title>@yield('title')</title>

  <meta charset="utf-8">
  <meta name="description" content="Create Facebook Multi Product Ads in 3 minutes less.">
  <meta name="viewport" content="width=device-width">

  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,700italic,400,600,700&subset=latin,vietnamese">
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,300,700&subset=latin,vietnamese">
  <link rel="stylesheet" href="{{ URL::to('assets/css/font-awesome.min.css') }}">
  <link rel="stylesheet" href="{{ URL::to('assets/js/libs/css/ui-lightness/jquery-ui-1.9.2.custom.min.css') }}">
  <link rel="stylesheet" href="{{ URL::to('assets/css/bootstrap.min.css') }}">
    <!-- App CSS -->
  <link rel="stylesheet" href="{{ URL::to('assets/css/target-admin.css') }}">
  @yield('header')
  <script src="{{ URL::to('assets/js/libs/jquery-1.10.1.min.js') }}"></script>
  <!-- <script src="//fbtarget.com/socket.io/socket.io.js"></script> -->
  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="{{ URL::to('https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js') }}"></script>
  <script src="{{ URL::to('https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js') }}"></script>
  <![endif]-->
  <script type="text/javascript">
  var BASEURL = '{{ URL::to('/') }}';
  var isLoggedIn = '{{Auth::check()}}';
  @if(Auth::check())
  var userChannel = '{{Fbpage::generateUserChannel(Auth::user()->id)}}';
  @endif
  var GRAPH_URL = 'https://graph.facebook.com/v2.2/';
  var ACCESSTOKEN = '{{ isset(Auth::user()->access_token) ? Auth::user()->access_token : '' }}';
  </script>
</head>

<body>

  <div class="navbar">

  <div class="container">

    <div class="navbar-header">

      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <i class="fa fa-cogs"></i>
      </button>

      <a class="navbar-brand navbar-brand-image" href="{{URL::to('/')}}">
        <img src="{{ URL::to('assets/img/logo.png') }}" alt="Site Logo">
      </a>

    </div> <!-- /.navbar-header -->
    @if(Auth::check())
      @include('includes.header-icons')
    @else
      @include('includes.header-icons-loggedout')
    @endif

  </div> <!-- /.container -->

</div> <!-- /.navbar -->
  @if(0/*Auth::check()*/)
    @include('includes.main-bar')
  @endif


<div class="container">

  <div class="content">

    <div class="content-container" style="margin-top: 75px;">
    @if (in_array(Route::current()->getUri(), array('multi-product-ads', 'create-ads', 'mpa-final')) && 0)
      <div class="row">

        <div class="col-sm-6 col-md-4">
          <div class="row-stat{{Route::current()->getUri() == 'login' ? ' label-success' : ''}}">
            <h3 class="row-stat-value">Step 1</h3>
            <p class="row-stat-label">Login with facebook</p>
          </div> <!-- /.row-stat -->
        </div> <!-- /.col -->

        <div class="col-sm-6 col-md-4">
          <div class="row-stat{{Route::current()->getUri() == 'multi-product-ads' ? ' label-success' : ''}}">
            <h3 class="row-stat-value">Step 2</h3>
            <p class="row-stat-label">Design advert</p>
          </div> <!-- /.row-stat -->
        </div> <!-- /.col -->

        <div class="col-sm-6 col-md-4">
          <div class="row-stat{{Route::current()->getUri() == 'mpa-final' ? ' label-success' : ''}}">
            <h3 class="row-stat-value">Step 3</h3>
            <p class="row-stat-label">Create ads in Power Editor</p>
          </div> <!-- /.row-stat -->
        </div> <!-- /.col -->

        
      </div>
    @endif

      <div class="content-header">
        @if(Auth::check())
          @include('includes.content-header')
        @endif
        <div id="content">
        @yield('content')
        </div>
      </div> <!-- /.content-header -->

      

      

    </div> <!-- /.content-container -->
      
  </div> <!-- /.content -->

</div> <!-- /.container -->


<footer class="footer">

  <div class="container">

    <center>Copyright &copy; {{date('Y')}} FBTarget.Com | <a href="{{URL::to('privacy.html')}}" target="_blank">Privacy</a></center>

  </div> <!-- /.container -->
  
</footer>

  <script src="{{ URL::to('assets/js/libs/jquery-ui-1.9.2.custom.min.js') }}"></script>
  <script src="{{ URL::to('assets/js/libs/bootstrap.min.js') }}"></script>
  <script src="{{ URL::to('assets/js/plugins/howl/howl.js') }}"></script>
  <!--[if lt IE 9]>
  <script src="{{ URL::to('assets/./js/libs/excanvas.compiled.js') }}"></script>
  <![endif]-->
  @yield('footer')
  <!-- App JS -->
  <script src="{{ URL::to('assets/js/target-admin.js') }}"></script>
</body>
</html>
